package com.cjw.pojo.entity.soulread;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @create_time: 2021.12.30
 * @author : cjw
 */
@Data
@ToString(callSuper = true)
@Table(name = "`read`")
@ApiModel("朗读")
public class Read {
    @Id
    @ApiModelProperty("id")
    protected Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("添加时间")
    private Date addTime;

    @ApiModelProperty("标题")
    private String topic;

    @ApiModelProperty("朗读内容")
    private String content;

    @ApiModelProperty("发布用户id")
    private Long userId;

    @ApiModelProperty(name = "权限", notes = "0-不公开 1-公开")
    private Integer isPublic;

    @ApiModelProperty("图片")
    private String picture;

    @ApiModelProperty(name = "删除标记", notes = "0-未删除 1-删除")
    private Integer deleteRemark;

    @ApiModelProperty("热度")
    private Double score;
}
